using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace ObjectParser
{
	/// <summary>
	/// Summary description for LabelEditDialog.
	/// </summary>
	public class LabelEditDialog : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textLabel;
		private System.Windows.Forms.Button butOK;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public string Label
		{
			get
			{
				return textLabel.Text;
			}
			set
			{
				textLabel.Text = value;
			}
		}
		public LabelEditDialog(string formTitle, string label)
		{
			InitializeComponent();
			this.Text = formTitle;
			this.Label = label;
			this.DialogResult = DialogResult.Cancel;
		}
		private void butOK_Click(object sender, System.EventArgs e)
		{
			this.DialogResult = DialogResult.OK;
			this.Close();
		}
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.textLabel = new System.Windows.Forms.TextBox();
			this.butOK = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "Label:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// textLabel
			// 
			this.textLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.textLabel.Location = new System.Drawing.Point(56, 8);
			this.textLabel.Name = "textLabel";
			this.textLabel.Size = new System.Drawing.Size(184, 20);
			this.textLabel.TabIndex = 1;
			this.textLabel.Text = "";
			// 
			// butOK
			// 
			this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.butOK.Location = new System.Drawing.Point(8, 32);
			this.butOK.Name = "butOK";
			this.butOK.Size = new System.Drawing.Size(232, 23);
			this.butOK.TabIndex = 2;
			this.butOK.Text = "OK";
			this.butOK.Click += new System.EventHandler(this.butOK_Click);
			// 
			// LabelEditDialog
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(248, 62);
			this.Controls.Add(this.butOK);
			this.Controls.Add(this.textLabel);
			this.Controls.Add(this.label1);
			this.Name = "LabelEditDialog";
			this.Text = "Edit Label";
			this.ResumeLayout(false);

		}
		#endregion

	}
}
